package frmk.ihm.panel;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.JPanel;

@SuppressWarnings("serial")
public class MsPanelImage extends JPanel {
	
	private Image image;

	public MsPanelImage(String adresse) {
		image = Toolkit.getDefaultToolkit().getImage(adresse);
	}

	@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		g.drawImage(image, 0, 0, null);
		validate();
		repaint();
	}
}
